package io.renren.service;

import io.renren.entity.SysAreaEntity;
import io.renren.entity.VO.SysAreaEntityVO;

import java.util.List;
import java.util.Map;

/**
 * 区域管理
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-06-14 10:24:14
 */
public interface SysAreaService {
	
	SysAreaEntity queryObject(Long areaId);
	
	List<SysAreaEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(SysAreaEntity sysArea);
	
	void update(SysAreaEntity sysArea);
	
	void delete(Long areaId);
	
	void deleteBatch(Long[] areaIds);

    int findSubCount(Long areaId);

	SysAreaEntityVO getTree();

	void updateArea(String areaId,String parentareaId);
}
